package cn.edu.zime.bigdata.dao.mapper;

import cn.edu.zime.bigdata.dao.model.*;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentGradeMapper {
    @Insert(
        "insert into student_grades(id, student_id, year, subject, grade, dengji) values(#{id},#{studentId},#{year},#{subject},#{grade},#{dengji})")
    public int insertGrade(StudentGrade u);

    List<StudentGradeStat> countStudentGrade(StudentGradeQuery query);

    List<Student> selectStudentGrade(StudentGradeQuery query);
}